home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / dumpnetworksetup / read me about dumpnetworksetup < prev   
Encoding:
Text File  |  2000-06-23  |  2.0 KB  |  48 lines

  1. Read Me About DumpNetworkSetup
  2.  
  3. 1.0b1
  4.  
  5. DumpNetworkSetup dumps the entire contents of the Network Setup database to a text file.  The purpose of this sample is twofold.  Firstly, it shows a simple use of the Network Setup API.  Secondly, it is a useful tool for debugging other Network Setup code because it allows you to see the affect your code had on the database.  I used DumpNetworkSetup extensively while developing the MoreNetworkSetup sample.
  6.  
  7.   <ftp://ftp.apple.com/developer/Sample_Code/Networking/MoreNetworkSetup.sit>
  8.  
  9. DumpNetworkSetup requires the Network Setup library, which is available in Mac OS 8.5 and above.
  10.  
  11. Packing List
  12.  
  13. The sample contains the following items:
  14.  
  15. • DumpNetworkSetup.mcp — A project file for the sample.
  16. • DumpNetworkSetup-PPC — A compiled version of the above.
  17. • DumpNetworkSetup.c — Source code to the sample.
  18. • MoreIsBetter — A folder containing the parts of MoreIsBetter that are required by this sample.
  19. • Network Setup SDK Bits — A folder containing some pre-release Network Setup interfaces and libraries.
  20.  
  21. Using the Sample
  22.  
  23. To use the sample, simply double-click it and choose a place to save the report.  DumpNetworkSetup will create a text file description of the Network Setup database.
  24.  
  25. Building the Sample
  26.  
  27. The sample was built using the CodeWarrior Pro 2 C compiler,.  You should be able to just open the project, select the “PPC” target, and choose Make from the Project menu.  This will build DumpNetworkSetup-PPC.
  28.  
  29. Caveats
  30.  
  31. DumpNetworkSetup only compiles for PowerPC because the Network Setup API is only exported to PowerPC clients.
  32.  
  33. DumpNetworkSetup includes formatted output for a number of important network preferences.  However, some preferences are still displayed only in hex.
  34.  
  35. Credits and Version History
  36.  
  37. If you find any problems with this sample, mail <DTS@apple.com> with “Attn: Quinn” as the first line of your mail and I’ll try to fix them up.
  38.  
  39. 1.0b1 (Jul 1999) was the first shipping version.
  40.  
  41. Share and Enjoy.
  42.  
  43. Quinn “The Eskimo!”
  44. Apple Developer Technical Support
  45. Networking, Communications, Hardware
  46.  
  47. 20 Jul 1999
  48.